import request from '@/utils/request'

// 查询复习计划存储列表
export function listPlancontent(query) {
  return request({
    url: '/Plancontent/Plancontent/list',
    method: 'get',
    params: query
  })
}

// 查询复习计划存储详细
export function getPlancontent(uid) {
  return request({
    url: '/Plancontent/Plancontent/' + uid,
    method: 'get'
  })
}

// 新增复习计划存储
export function addPlancontent(data) {
  return request({
    url: '/Plancontent/Plancontent',
    method: 'post',
    data: data
  })
}

// 修改复习计划存储
export function updatePlancontent(data) {
  return request({
    url: '/Plancontent/Plancontent',
    method: 'put',
    data: data
  })
}

//清空main状态
export function mainisnothing(){
  return request({
    url: '/Plancontent/Plancontent/mainisnothing',
    method: 'get'
  })
}

// 删除复习计划存储
export function delPlancontent(uid) {
  return request({
    url: '/Plancontent/Plancontent/' + uid,
    method: 'delete'
  })
}
